package net.sk.china.city.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章类别对象 ar_article_category
 * 
 * @author gxf
 * @date 2024-03-26
 */
@Data
public class ArArticleCategory
{
    private static final long serialVersionUID = 1L;

    /** 类别id */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 文章类别名 */
    private String cateName;

    /** 文章类别状态 0：停用 1：启用 */
    private String categoryStatus;

    /** 所属地区 */
    private String platformId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cateName", getCateName())
            .append("categoryStatus", getCategoryStatus())
            .append("platformId", getPlatformId())
            .toString();
    }
}
